<?php
    if(!$this->session->userdata('logged_in')) {
        redirect('logout');
    } else if($this->session->userdata('role') !== 'admin') {
        redirect('forbidden');
    }
?>
<div id="post_container">
    <div id="post_pending_reject_wrapper">
        <?php 
            $post_id = $rejected['post_id'];
            echo form_open('post/pending/reject/'.$post_id, array('id' => 'reject_post_form'));
            echo form_label('Title: ', 'title');
            echo form_input($reject_title).'<br/>';
            echo form_label('Full Text', 'full_text').'<br/>';
            echo form_textarea($full_text).'<br/>';
            echo form_label('Comment', 'comment').'<br/>';
            echo form_textarea($comment).'<br/>'; ?>
            <input type="submit" name="submit" value="Send" id="btn_cancel" />
            <input type="button" id="btn_cancel" value="Cancel" onclick="window.location='<?php echo site_url() ?>post_c/show_pending_post';" />
        <?php echo form_close(); ?>
    </div>
</div>
